{% extends 'base.html' %}
{% block content %}

    <div class="panel panel-default">
        <div class="panel-body">
            {% if success %}
                录入成功
            {% else %}
                {{ e }}
            {% endif %}
        </div>
    </div>
    <div>
        <button id="btnConfirm">确定</button>
    </div>

{% endblock %}
{% block script %}
    <script>
        $(document).ready(function () {
            $("#btnConfirm").click(function () {
                $(location).attr('href', '/');
            });
        });
    </script>
{% endblock %}